import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		token: 'jghjhgjghjg',
		userInfo: {
			id: "afaf3535",
			name: 'dbdbd34535',
			cover: 'https://cdn.uviewui.com/uview/album/1.jpg', //头像
			telephone: '12313132',
			sex: '0',
			email: "1523320@qq.com"
		},
		goodCart: [],
		typeList: [],
		amount: 0,
		count: 0,
		good:{},
		tableId:null
	},
	getters: {},
	mutations: {
		ADD_TOKEN(state, value) {
			state.token = value
		},
		ADD_CART(state, good) {

		},

		DELETE_GOODBYCART(state, good) {
			
		}
	},
	actions: {
		addCart(context, value) {
			context.commit('ADD_CART', value);
		},
		deleteCart(context,value){
			context.commit('DELETE_GOODBYCART', value)
		}
	},

})


export default store